package cn.com.dcsgo.api.fallback;

import cn.com.dcsgo.api.client.NotificationClient;
import cn.com.dcsgo.api.dto.NotificationDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * NotificationClientFallback
 *
 * @author Dcsgo
 * @since 2025/4/9 13:56
 */
@Slf4j
@Component
public class NotificationClientFallback implements NotificationClient {
    @Override
    public boolean add(NotificationDTO notificationDTO) {
        log.error("执行NotificationClientFallback.add");
        return false;
    }

    @Override
    public boolean updateById(NotificationDTO notificationDTO) {
        log.error("执行NotificationClientFallback.updateById");
        return false;
    }

    @Override
    public List<NotificationDTO> getAll() {
        log.error("执行NotificationClientFallback.getAll");
        return new ArrayList<>(0);
    }

    @Override
    public List<NotificationDTO> getByUserId(Long userId, Boolean isRight) {
        log.error("执行NotificationClientFallback.getByUserId");
        return new ArrayList<>(0);
    }


}
